// baidu yapi
// const SERVER_API_URL = 'https://yapi.baidu.com/mock/41008';
// const SERVER_API_URL = 'https://yapi.ducafecat.tech/mock/11';
// const SERVER_API_URL = 'https://mock.apifox.cn/m1/1124717-0-default';

// 本地搭建 yapi
// const SERVER_API_URL = 'http://yapi.ducafecat.tech/mock/11';

/// 构建项目接口地址方法
/// [path]接口路径
String projectApiUrl(String path) {
  return '${APIPath.baseUrl}/$path';
}

abstract class APIPath {
  static const String baseUrl = 'https://mock.apifox.cn/m1/1124717-0-default';

  /// 获取用户基本信息 get
  static String myMessage = projectApiUrl('api/mine');

  //***//用户相关接口
  /// 修改昵称 post get传参
  static String changeNickName = projectApiUrl('app/users/updateNickName');

  /// 修改密码 post
  static String changePassword = projectApiUrl('app/users/updatePass');

  /// 修改头像 post
  static String uploadPhoto = projectApiUrl('app/users/updateAvatar');

  /// 修改密码-获取短信验证码 get
  static String phoneCode =
      projectApiUrl('app/users/retrieve_password/get_short_message_code');

  /// 忘记密码-修改密码 post
  static String forgetChangePassword =
      projectApiUrl('app/users/retrieve_password/change_password');

  //***//系统授权接口
  ///登录 post
  static String login = projectApiUrl('app/auth/login');

  ///用户信息 get
  static String userInfo = projectApiUrl('app/auth/info');

  //退出登录
  static String loginout = projectApiUrl('/app/auth/logout');
}
